#pragma once
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_ttf.h"
//cua so game tuong tac
#define HEIGHT 630
#define WITCH 400
#define LINE 600//day duoi'
// point
struct Point2d
{
	int x;
	int y;
};
//class chinh
class Gobj
{	
protected:
	SDL_Rect bound;
	Point2d position;
	SDL_Surface* image;
public:
	Gobj(SDL_Surface * img, Point2d pos);
	virtual ~Gobj();
	virtual void Update();
	virtual void Draw(SDL_Surface*);
	void Move(int dx, int dy);
	SDL_Rect getBox();
	void SetPosition(Point2d pos);
	bool checkCollision(SDL_Rect eggshit, SDL_Rect ro);
};
